Skip to content

Conversation

@kraxel
Copy link
Member

@kraxel kraxel commented Dec 4, 2025

Description

  • OvmfPkg/VirtioSerialDxe: drop Get/SetControl logging

  • OvmfPkg/VirtioSerialDxe: explitly clear return value in GetControl

  • OvmfPkg/VirtioSerialDxe: factor out VirtioSerialIoWriteFlush

  • OvmfPkg/VirtioSerialDxe: set EFI_SERIAL_INPUT_BUFFER_EMPTY

  • Breaking change?

    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?

    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?

    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

manual testing in qemu

Integration Instructions

N/A

@kraxel kraxel marked this pull request as ready for review December 4, 2025 17:08
@ardbiesheuvel
Copy link
Member

Please describe these changes in terms of the 'why' - describing /what/ a 2 line patch does is kind of pointless, anybody can see that for themselves.

Left over from development.  The messages do not serve much value
and spam the logs.  Drop them.

Signed-off-by: Gerd Hoffmann <[email protected]>
The function does not return any flags.  Make that explicit instead of
leaving the return value unmodified, so we do not depend on the caller
initializing it.

Signed-off-by: Gerd Hoffmann <[email protected]>
Next patch needs this function.
No functional change.

Signed-off-by: Gerd Hoffmann <[email protected]>
@kraxel kraxel force-pushed the devel/logs-virtio-serial branch from 680646e to 18ef1af Compare December 5, 2025 09:46
@tianocore-pr-automation
Copy link

Pull Request Formatting Issues

⚠️ Provide a more detailed pull request description using the PR template (current: 132 characters).

Address these issues and the validation will automatically re-run when you update your pull request.

@ardbiesheuvel ardbiesheuvel added the push Auto push patch series in PR if all checks pass label Dec 5, 2025
Check if there is data available for read, set the
EFI_SERIAL_INPUT_BUFFER_EMPTY flag accordingly.

With proper status returned VirtioSerialIoRead() will only
be called if there is actual data to read, so we must call
VirtioSerialIoWriteFlush() to make sure pending writes get
flushed to the host properly.

Signed-off-by: Gerd Hoffmann <[email protected]>
@kraxel kraxel force-pushed the devel/logs-virtio-serial branch from 18ef1af to 0d8d6b0 Compare December 5, 2025 10:38
@kraxel
Copy link
Member Author

kraxel commented Dec 8, 2025

@ardbiesheuvel Seems without approval the push label has no effect.

@mergify mergify bot added the queued label Dec 9, 2025
@mergify
Copy link

mergify bot commented Dec 9, 2025

Merge Queue Status

✅ The pull request has been merged at 639b2a6

This pull request spent 20 minutes 50 seconds in the queue, including 20 minutes 41 seconds running CI.
The checks were run in-place.

Required conditions to merge
  • #approved-reviews-by >= 1 [🛡 GitHub branch protection]
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = tianocore.PatchCheck
    • check-neutral = tianocore.PatchCheck
    • check-skipped = tianocore.PatchCheck
  • any of [🛡 GitHub branch protection]:
    • check-success = ArmVirtPkg - Ubuntu GCC - PR
    • check-neutral = ArmVirtPkg - Ubuntu GCC - PR
    • check-skipped = ArmVirtPkg - Ubuntu GCC - PR
  • any of [🛡 GitHub branch protection]:
    • check-success = EmulatorPkg - Ubuntu GCC - PR
    • check-neutral = EmulatorPkg - Ubuntu GCC - PR
    • check-skipped = EmulatorPkg - Ubuntu GCC - PR
  • any of [🛡 GitHub branch protection]:
    • check-success = EmulatorPkg - Windows VS - PR
    • check-neutral = EmulatorPkg - Windows VS - PR
    • check-skipped = EmulatorPkg - Windows VS - PR
  • any of [🛡 GitHub branch protection]:
    • check-success = OvmfPkg - Ubuntu GCC - PR
    • check-neutral = OvmfPkg - Ubuntu GCC - PR
    • check-skipped = OvmfPkg - Ubuntu GCC - PR
  • any of [🛡 GitHub branch protection]:
    • check-success = OvmfPkg - Windows VS - PR
    • check-neutral = OvmfPkg - Windows VS - PR
    • check-skipped = OvmfPkg - Windows VS - PR
  • any of [🛡 GitHub branch protection]:
    • check-success = Windows VS - PR
    • check-neutral = Windows VS - PR
    • check-skipped = Windows VS - PR
  • any of [🛡 GitHub branch protection]:
    • check-success = Ubuntu GCC - PR
    • check-neutral = Ubuntu GCC - PR
    • check-skipped = Ubuntu GCC - PR
  • any of [🛡 GitHub branch protection]:
    • check-success = Validate Pull Request Formatting
    • check-neutral = Validate Pull Request Formatting
    • check-skipped = Validate Pull Request Formatting

@mergify mergify bot merged commit 471c15b into tianocore:master Dec 9, 2025
107 checks passed
@mergify mergify bot removed the queued label Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

push Auto push patch series in PR if all checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants